import type { RouteRecordRaw } from 'vue-router'
import config from '@/config'
// 系统静态路由
export const systemRoutes: RouteRecordRaw[] = [
    {
        path: '/',
        redirect: config.DASHBOARD_URL
    },
    {
        name: 'layout',
        path: '/',
        component: () => import('@/layout/layoutIndex.vue'),
        redirect: config.DASHBOARD_URL,
        children: []
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/layout/other/other404.vue')
    },
    {
        path: '/500',
        name: '500',
        component: () => import('@/layout/other/other500.vue')
    },
    {
        path: '/:pathMatch(.*)*',
        component: () => import('@/layout/other/other404.vue')
    }
]

// auth静态路由
export const systemAuthRoutes: RouteRecordRaw[] = [
    {
        path: '/login',
        name: '登录',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录'
        }
    },
    {
        path: '/resetPassword',
        name: '重置密码',
        component: () => import('@/views/login/resetPassword.vue'),
        meta: {
            title: '重置密码'
        }
    }
]
